﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="css/style.css" rel="stylesheet" type="text/css" />
</head>
<body  >
    <form id="form1" runat="server">
        <table id="tb" runat="server">
            <tr>
                <th colspan="2">
                    数据库登陆
                </th>
            </tr>
            <tr>
                <td>IP</td>
                <td><asp:TextBox ID="txtIp" runat="server" Text="172.28.1.49"  /></td>    
            </tr>
            <tr>
                <td>数据库名</td>
                <td><asp:TextBox ID="txtDataBase" runat="server" Text="MyStock" /></td>
            </tr>
            <tr>
                <td>用户名</td>
                <td><asp:TextBox ID="txtUserName" runat="server" Text="sa" /></td>
            </tr>
            <tr>
                <td>
                    密码
                </td>
                <td>
                    <asp:TextBox ID="txtPwd" runat="server" Text="webmanager" />
                </td>
            </tr>
            <tr>
                <td>命名空间</td>
                <td><asp:TextBox ID="txtNameSpace" runat="server" Text="wailisiji.MyStock.entity" /></td>
            </tr>
            <tr>
                <td>类库名称</td>
                <td><asp:TextBox ID="txtAssembly" runat="server" Text="wailisiji.MyStock.entity" /></td>
            </tr>
            <tr>
                <td colspan="2" align="center">
                    <asp:Button ID="btnOk" runat="server" Text="确定" onclick="btnOk_Click" 
                        style="height: 21px" />
                </td>
            </tr>
        </table>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            BackColor="White" BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" 
            CellPadding="4" ForeColor="Black" GridLines="Vertical">
            <AlternatingRowStyle BackColor="White" />
            <Columns>
                <asp:BoundField HeaderText="表名" DataField="Name" />
                <asp:BoundField DataField="Desc" HeaderText="中文名" />
                <asp:HyperLinkField DataNavigateUrlFields="Name" 
                    DataNavigateUrlFormatString="~/code1.aspx?tablename={0}" Target="_blank" 
                    Text="数据访问类" />
                <asp:HyperLinkField DataNavigateUrlFields="name" 
                    DataNavigateUrlFormatString="Entity.aspx?tablename={0}" Target="_blank" 
                    Text="实体类" />
                <asp:HyperLinkField DataNavigateUrlFields="name" 
                    DataNavigateUrlFormatString="SqlImport.ASPX?tablename={0}" Target="_blank" Text="导数据Sql" />
                <asp:HyperLinkField DataNavigateUrlFields="name" 
                    DataNavigateUrlFormatString="hibernateconfig.ASPX?tablename={0}"  Target="_blank" 
                    Text="Hibernate配置文件" />
            </Columns>
            <FooterStyle BackColor="#CCCC99" />
            <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
            <RowStyle BackColor="#F7F7DE" />
            <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
            <SortedAscendingCellStyle BackColor="#FBFBF2" />
            <SortedAscendingHeaderStyle BackColor="#848384" />
            <SortedDescendingCellStyle BackColor="#EAEAD3" />
            <SortedDescendingHeaderStyle BackColor="#575357" />
        </asp:GridView>
    </form>
    <p>
        &nbsp;</p>
</body>
</html>
